package com.bnz.manager.client;

import com.bnz.common.entity.R;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class ManagerClientFactory implements FallbackFactory<ManagerClient> {
    @Override
    public ManagerClient create(Throwable cause) {
        return () -> R.error("调用user服务出现了问题（fallbackFactory）实现");
    }
}
